﻿namespace EcoSystem
{
    /// <summary>
    /// V8引擎使用说明
    /// https://www.bbsmax.com/A/Gkz10Zy2dR/
    /// https://learn.microsoft.com/zh-cn/archive/msdn-magazine/2014/september/cutting-edge-a-look-at-clearscript
    /// </summary>
    public interface ICoreScriptService
    {
        /// <summary>
        /// 创建对象实例
        /// </summary>
        /// <typeparam name="TService"></typeparam>
        /// <returns></returns>
        TService CreateService<TService>();

        /// <summary>
        /// 创建对象实例
        /// </summary>
        /// <param name="typeName"></param>
        /// <returns></returns>
        object CreateService(string typeName);
    }
}
